package simpleFactory;

public class Person {
    private String organ;
    Person(String organ){
        this.organ = organ;
    }
    public void speak(){
        System.out.println("I have a "+organ);
    }
}

class Man extends Person{
    Man(String organ){
        super(organ);
    }
    @Override
    public void speak(){
        super.speak();
        System.out.println("it is very long");
    }
}

class Woman extends Person{
    Woman(String organ){
        super(organ);
    }

    @Override
    public void speak() {
        super.speak();
        System.out.println("it is very juicy");
    }
}

class Robot extends Person{
    Robot(String organ){
        super(organ);
    }

    @Override
    public void speak() {
        super.speak();
        System.out.println("it can be a container of your semen");
    }
}